home *** CD-ROM | disk | FTP | other *** search
- Path: news.th-darmstadt.de!news
- From: enno@inferenzsysteme.informatik.th-darmstadt.de (Enno Sandner)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ gurus, I have a question for you!
- Date: 19 Feb 1996 19:35:24 +0100
- Organization: Fachbereich Informatik, TH Darmstadt
- Sender: enno@kitz.inferenzsysteme.informatik.th-darmstadt.de
- Message-ID: <lt68d36u4z.fsf@kitz.inferenzsysteme.informatik.th-darmstadt.de>
- References: <31281804.687F@iglou.com>
- NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
- In-reply-to: "Abe L. Getchell"'s message of Mon, 19 Feb 1996 06:26:12 GMT
- X-Newsreader: Gnus v5.1
-
- In article <31281804.687F@iglou.com> "Abe L. Getchell" <panther@iglou.com> writes:
-
- How is it possible to check if a variable has been
- initialized yet? If I do 'if ( !a ) { int a = 1 }' I get
- an error message. Please, any help would be great. Reply
- to the group or in mail. Thanks in advance!
-
- No,
- there's no direct way. However you're free to wrap the variable
- in an object that provides the desired functionality.
-
- Enno
-